package com.scud.common.constants;

/**
 * rabbitMq相关常数
 *
 * @author vermouth
 */
public class RabbitmqConstants {

    //订单处理交换机（异步向数据库中插入订单）
    public static final String SCUD_ORDER_EXCHANGE = "SCUD_ORDER_EXCHANGE";

    //订单处理消息队列
    public static final String SCUD_ORDER_QUEUE = "SCUD_ORDER_QUEUE";

    //订单处理routingKey
    public static final String SCUD_ORDER_KEY = "SCUD_ORDER_KEY";

    //订单超时时间
    public static final int DELAY_TIME = 1000 * 30;

    //订单超时交换机
    public static final String SCUD_ORDER_OVER_EXCHANGE = "SCUD_ORDER_OVER_EXCHANGE";

    //订单超时消息队列
    public static final String SCUD_ORDER_OVER_QUEUE = "SCUD_ORDER_OVER_QUEUE";

    //订单超时RoutingKey
    public static final String SCUD_ORDER_OVER_KEY = "SCUD_ORDER_OVER_KEY";

    //订单超时死信交换机
    public static final String SCUD_ORDER_DEAD_EXCHANGE = "SCUD_ORDER_OVER_DEAD_EXCHANGE";

    //订单超时死信队列
    public static final String SCUD_ORDER_DEAD_QUEUE = "SCUD_ORDER_DEAD_QUEUE";

    //订单死信RoutingKey
    public static final String SCUD_ORDER_DEAD_KEY = "SCUD_ORDER_DEAD_KEY";
}
